package com.achen.study.study1;

import java.util.concurrent.Callable;


/**
 * @description:
 * @author: Zhaoliang Chen
 * @time: 2021/8/3
 */
public class TestImplementsCallable implements Callable  {


    @Override
    public Object call() throws Exception {
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
       return "子线程在停止1S后执行完毕: " + Thread.currentThread().getId();
    }
}
